<template>
	<view class="goods_list">
		<view class="goods_item" v-for="item in goods" :key="item.id">
			<image :src="item.img_url" mode=""></image>
			<view class="price">
				<text>{{item.sell_price}}</text>
				<text>{{item.market_price}}</text>
			</view>
			<view class="name">
				{{item.title}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['goods'],
		name:"goods-list",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
.goods_list{
		padding: 0 15rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		.goods_item{
			width: 355rpx;
			box-sizing: border-box;
			background-color: #fff;
			margin: 5rpx 0;
			image{
				width: 90%;
				height: 300rpx;
				display: block;
				margin: 0 auto;
			}
			.price{
				color: $market-color;
				font-size: 30rpx;
				text{
					padding: 10rpx;
				}
				text:nth-child(2){
					color: #ccc;
					font-size: 20rpx;
					text-decoration: line-through;
				}
			}
			.name{
				padding: 10rpx;
				font-size: 28rpx;
				line-height: 50rpx;
			}
		}
	}
</style>
